home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap13 / GridDemo / GridDemo.h < prev    next >
C/C++ Source or Header  |  1996-04-05  |  1KB  |  57 lines

  1. //***********************************************************************
  2. //
  3. //  GridDemo.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     int m_cx;
  17.     int m_cy;
  18.     int m_nWeight;
  19.  
  20. public:
  21.     CMainWindow ();
  22.  
  23. protected:
  24.     afx_msg void OnPaint ();
  25.     afx_msg void OnOptionsSettings ();
  26.     afx_msg void OnOptionsExit ();
  27.  
  28.     DECLARE_MESSAGE_MAP ()
  29. };
  30.  
  31. class CMyToolTipCtrl : public CToolTipCtrl
  32. {
  33. public:
  34.     BOOL AddWindowTool (CWnd*, LPCTSTR);
  35.     BOOL AddRectTool (CWnd*, LPCTSTR, LPCRECT, UINT);
  36. };
  37.  
  38. class CSettingsDialog : public CDialog
  39. {
  40. private:
  41.     CMyToolTipCtrl m_ctlTT;
  42.  
  43. public:
  44.     int m_cx;
  45.     int m_cy;
  46.     int m_nWeight;
  47.  
  48.     CSettingsDialog (CWnd* pParentWnd = NULL) :
  49.         CDialog (IDD_SETTINGSDLG, pParentWnd) {}
  50.  
  51.     virtual BOOL OnInitDialog ();
  52.  
  53. protected:
  54.     virtual void DoDataExchange (CDataExchange*);
  55.     virtual void OnOK ();
  56. };
  57.